package com.diandian.backend.product.clients;

import com.diandian.backend.product.clients.dto.client.ClientSettingGetByBelongRespDTO;
import com.diandian.base.boot.starter.response.BaseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("diandian-client")
//@FeignClient(value = "business-diandian-sms", url = "http://localhost:8083", path = "")
public interface DianDianClientClient {

    @GetMapping("/client/setting/getByBelong")
    BaseResult<List<ClientSettingGetByBelongRespDTO>> getByBelong(@RequestParam(value = "belong") String belong);

}
